package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 借阅记录对象 t_borrow_record
 * 
 * @author ruoyi
 * @date 2025-07-22
 */
public class BorrowRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借阅记录（主键） */
    private Integer id;

    private String userName;



    /** 借阅记录编号 */
    @Excel(name = "借阅记录编号")
    private String borrowNum;

    /** 借阅人 */
    @Excel(name = "借阅人")
    private Integer borrowUser;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowDate;

    /** 预计归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planBackDate;

    /** 借阅记录明细信息 */
    private List<BorrowRecordInfo> borrowRecordInfoList;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setBorrowNum(String borrowNum) 
    {
        this.borrowNum = borrowNum;
    }

    public String getBorrowNum() 
    {
        return borrowNum;
    }

    public Integer getBorrowUser() {
        return borrowUser;
    }

    public void setBorrowUser(Integer borrowUser) {
        this.borrowUser = borrowUser;
    }

    public void setBorrowDate(Date borrowDate)
    {
        this.borrowDate = borrowDate;
    }

    public Date getBorrowDate() 
    {
        return borrowDate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public void setPlanBackDate(Date planBackDate) 
    {
        this.planBackDate = planBackDate;
    }

    public Date getPlanBackDate() 
    {
        return planBackDate;
    }

    public List<BorrowRecordInfo> getBorrowRecordInfoList()
    {
        return borrowRecordInfoList;
    }

    public void setBorrowRecordInfoList(List<BorrowRecordInfo> borrowRecordInfoList)
    {
        this.borrowRecordInfoList = borrowRecordInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("borrowNum", getBorrowNum())
            .append("borrowUser", getBorrowUser())
            .append("borrowDate", getBorrowDate())
            .append("planBackDate", getPlanBackDate())
            .append("borrowRecordInfoList", getBorrowRecordInfoList())
            .toString();
    }
}
